package ace.oauth2.provider.base.support;

import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @author Caspar
 * @contract 279397942@qq.com
 * @create 2020/11/23
 * @description
 */
public interface AceUserDetailsService extends UserDetailsService {
    /**
     * 根据租户id与账户id，创建oauth2的username
     *
     * @param tenantId
     * @param accountId
     * @return
     */
    String buildOAuth2UserName(String tenantId, String accountId);
}
